package com.mql.gre.rs;

import java.util.HashSet;
import java.util.Set;

import javax.ws.rs.core.Application;

import com.mql.gre.business.DocumentManagerImpl;

public class DocumentApplication extends Application {

	private Set<Object> singletons = new HashSet<Object>();
	private Set<Class<?>> empty = new HashSet<Class<?>>();
	private DocumentManagerImpl dm;

	public DocumentApplication() {
		dm = new DocumentManagerImpl();
		singletons.add(new DocumentManagerRS(dm));
		//Revision 3
	}

	@Override
	public Set<Class<?>> getClasses() {
		return empty;
	}

	@Override
	public Set<Object> getSingletons() {

		return singletons;
	}

}
